package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 岗位调转申请业务对象 oa_human_transfer
 *
 * @author ruoyi
 * @date 2023-06-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaHumanTransferBo extends BaseEntity {

    /**
     * 主键
     */
    private String id;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 调动类型
     */
    @NotBlank(message = "调动类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transferType;

    /**
     * 申请人
     */
    @NotBlank(message = "申请人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantName;

    /**
     * 申请人ID
     */
    @NotBlank(message = "申请人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicantId;

    /**
     * 原部门
     */
    @NotBlank(message = "原部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currentDept;

    /**
     * 原直属上级
     */
    @NotBlank(message = "原直属上级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currentLeader;

    /**
     * 原职位
     */
    @NotBlank(message = "原职位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currentPosition;

    /**
     * 原职级
     */
    @NotBlank(message = "原职级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String currentLevel;

    /**
     * 新部门
     */
    @NotBlank(message = "新部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newDept;

    /**
     * 新直属上级
     */
    @NotBlank(message = "新直属上级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newLeader;

    /**
     * 新职位
     */
    @NotBlank(message = "新职位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newPosition;

    /**
     * 新职级
     */
    @NotBlank(message = "新职级不能为空", groups = { AddGroup.class, EditGroup.class })
    private String newLevel;

    /**
     * 备注
     */
    private String remarks;



    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
    * 提交时间 终
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;
    /**
     * 流程状态
     */
    private String status;

    /**
     * 创建
     */
    private String createUser;

}
